/*
 * @Description: 积分冻结
 * @Date: 2022-12-09 14:00:11
 * @Author: lizhiqiang
 */
import { BaseFrozenAccount } from "@/types/api";
import { get, post } from "@/utils/request";
/**
 * 获取积分冻结列表
 */
export const GetIntegralAccountFrozenList = ( params: BaseFrozenAccount ) => {
    return post( "/integral-service/base/accountfrozen/list", params )
}
/**
 * 获取积分冻结详情
 * @param pkAccountDc 
 * @returns 
 */
export const GetIntegralAccountFrozen = ( pkAccountDc: string ) => {
    return get( `/integral-service/base/accountfrozen/info/${ pkAccountDc }` )
}
/**
 * 保存积分冻结
 * @param params 
 * @returns 
 */
export const SaveIntegralAccountFrozen = ( params: BaseFrozenAccount ) => {
    return post( "/integral-service/base/accountfrozen/save", params )
}
/**
 * 修改积分冻结
 * @param params 
 * @returns 
 */
export const UpdateIntegralAccountFrozen = ( params: BaseFrozenAccount ) => {
    return post( "/integral-service/base/accountfrozen/update", params )
}
/**
 * 删除积分冻结记录
 * @param params 
 * @returns 
 */
export const DeleteIntegralAccountFrozen = ( params: Array<string> ) => {
    return post( "/integral-service/base/accountfrozen/deleteBatch",params)
}